package com.seeyon.apps.kk.timer;

import java.util.TimerTask;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.seeyon.apps.kk.manager.QiangsMemberManager;
import com.seeyon.ctp.common.AppContext;

public class SynMemberTimers extends TimerTask {

	private static final Log log = LogFactory.getLog(SynMemberTimers.class);
	private QiangsMemberManager qiangsManager = (QiangsMemberManager) AppContext.getBean("memberQiangsManager");
	
	@Override
	public void run() {
		// TODO Auto-generated method stub
		try {
			qiangsManager.syncFile4Ftp();
			log.info("##强生客开: 执行ftp数据同步----------开始");
			qiangsManager.syncMemberInfo();
			log.info("##强生客开: 执行人员数据同步----------结束");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			log.error("##强生客开: ", e);
		}
	}

}
